/**
 * 招聘广告请求模块
 */
import request from '@/utils/request'

/**
 * 获取招聘广告
 */
export function getRecruitment(params) {
  return request({
    url: '/recruitment/get_list',
    method: 'get',
    // body 使用data
    // query 使用params
    // headers 使用headers
    params
  })
}

/**
 * 新增招聘广告
 */
export function addRecruitment(data) {
  return request({
    url: '/recruitment/add',
    method: 'post',
    data
  })
}

/**
 * 修改招聘广告
 */
export function modifyRecruitment(data) {
  return request({
    url: '/recruitment/modify',
    method: 'post',
    data
  })
}

/**
 * 删除招聘广告
 */
export function deleteRecruitment(data) {
  return request({
    url: '/recruitment/delete',
    method: 'post',
    data
  })
}
